package com.coldchain.common.vo;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName MenuVo
 * @Description TODO
 * @Author fangliai
 * @Date 2018/9/7 18:42
 * @Vesion 1
**/
public class MenuVo extends TreeNodeVo implements Serializable {


    public MenuVo(String title, String url, String sysmodel) {
        this.title = title;
        this.url = url;
        this.sysmodel=sysmodel;
    }

    public MenuVo(){};
    /**
     * 主键
     */

    private Integer id;
    /**
     * 菜单名称
     */

    private String title;


    private String 	sysmodel;

    private String icon;
    private  String describes;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String createBy;

    /**
     * 请求路径
     */

    private String url;

    /**
     * 为0则表示父节点
     */
    private Integer parentId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSysmodel() {
        return sysmodel;
    }

    public void setSysmodel(String sysmodel) {
        this.sysmodel = sysmodel;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public Object getNodeId() {
        return id;
    }

    @Override
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
}
